<!--
  ~ MIT License
  ~
  ~ Copyright (c) 2021-2022 yangrunkang
  ~
  ~ Author: yangrunkang
  ~ Email: yangrunkang53@gmail.com
  ~
  ~ Permission is hereby granted, free of charge, to any person obtaining a copy
  ~ of this software and associated documentation files (the "Software"), to deal
  ~ in the Software without restriction, including without limitation the rights
  ~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  ~ copies of the Software, and to permit persons to whom the Software is
  ~ furnished to do so, subject to the following conditions:
  ~
  ~ The above copyright notice and this permission notice shall be included in all
  ~ copies or substantial portions of the Software.
  ~
  ~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  ~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  ~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  ~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  ~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  ~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  ~ SOFTWARE.
  -->

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      th:replace="index">
<!--css-->
<link th:fragment="css" type="text/css" rel="stylesheet" th:href="${ossStatic} + @{/css/user/login.css}" />
<!--脚本-->
<script async="async" th:fragment="js" type="text/javascript" th:src="${ossStatic} + @{/js/user/login.js}"></script>
<!--内容-->
<div th:fragment="content">
    <div class="container">
        <div class="row g-2">
            <div class="col-lg-9 mb-2">
                <div class="card border-0 rounded-3 p-2">
                    <h2 style="text-align: center" class="fw-lighter">登录网站</h2>
                    <form class="form-horizontal" style="align-items: center">
                        <div class="form-group mb-3">
                            <div class="row g-2">
                                <div class="col-lg-3">
                                    <label for="email" class="control-label"></label>
                                </div>
                                <div class="col-lg-6">
                                    <div th:include="fragments/member::memberEmail"></div>
                                </div>
                                <div class="col-lg-3"></div>
                            </div>
                        </div>
                        <div class="form-group mb-3">
                            <div class="row g-2">
                                <div class="col-lg-3">
                                    <label for="password" class="control-label"></label>
                                </div>
                                <div class="col-lg-6">
                                    <div class="ui left input fluid">
                                        <input type="password" id="password" placeholder="密码">
                                    </div>
                                </div>
                                <div class="col-lg-3"></div>
                            </div>
                        </div>
                        <div class="form-group mb-3">
                            <div class="row g-2">
                                <div class="col-lg-3"></div>
                                <div class="col-lg-6">
                                    <button type="submit" class="ui primary button">登录</button>
                                    <button type="button" class="ui button">取消</button>
                                </div>
                                <div class="col-lg-3"></div>
                            </div>
                        </div>
                        <div class="form-group mb-3">
                            <div class="row g-2">
                                <div class="col-lg-3"></div>
                                <div class="col-lg-6">
                                    <div th:if="${loginTips} != null" class="alert alert-danger alert-dismissible fade show" role="alert">
                                        [[${loginTips}]]
                                        <button type="button" class="btn btn-close rounded-3 bg-gradient-close" data-bs-dismiss="alert" aria-label="Close"></button>
                                    </div>
                                </div>
                                <div class="col-lg-3"></div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="col-lg-3">
                <div class="card border-0 rounded-3 p-2">
                    <div class="lead border-bottom mb-2">欢迎回来!</div>
                    <a href="/register" class="cv-link" title="无账号? 去注册">1. 无账号? 去注册</a>
                    <a href="/forget-password" class="cv-link" title="忘记密码">2. 忘记密码</a>
                </div>
            </div>
        </div>
    </div>
</div>
</html>
